<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>



<script type="text/javascript" src="<?php echo JS_PATH;?>member_common.js"></script>



<style>



.submit {



	padding-left: 3px



}







.submit,.submit input {



	background: url(<?php echo IMG_PATH;?>member/but.png) no-repeat;



	height: 29px;



	cursor: hand;



}







.submit input {



	background-position: right top;



	border: none;



	padding: 0 10px 0 7px;



	font-size: 14px



}







.reg {



	color: #666;



	line-height: 24px



}







.reg .submit {



	background-position: left -35px;



	height: 35px



}







.reg .submit input {



	background-position: right -35px;



	font-weight: 700;



	color: #fff;



	height: 35px



}



.newest .newestTit a{background-image:none; line-height:25px;}

.zxjrwz{ font:12px "宋体"; color:#404040; font-weight:bold; margin-top:100px; border-bottom:1px #ccc solid; line-height:25px;}

.zxjrwz_text .moreTit a{ font-size:12px; font-weight:normal; text-decoration:underline;color:#001C87;}

.zxjrwz_gd{ text-align:right; line-height:30px;}

.zshyred{ color:#ff0000;}

a.zz_lan{font-size:12px; font-weight:normal; text-decoration:underline;color:#001C87;}

.qtnews{ font-weight:bold;line-height:25px; margin-top:10px;}

.qtnews a{color:#001C87; }

</style>



<!--main-->



<div id="mainbody">



<!--startprint-->



	<div class="essay_left">



        <div class="introduce">



            	<h2 class="introduceTit"><span class="titlename"><?php echo $title;?></span></h2>



                <ul class="e_newsList">



                	<li><span><?php echo L('author');?>：</span><strong><?php echo $username;?></strong></li>



                    <li><span><?php echo L('inputtime');?>：</span><strong><?php echo $inputtime;?></strong></li>



                </ul>



                <p class="valid"><?php echo $description;?></p>



        </div>



		<div class="newest">



			<h2 class="newestTit">



				<a href="javaScript:void(0)" class="hover"><?php echo L('en_text');?></a><a href="javaScript:void(0)"><?php echo L('china_text');?></a>



				<a class="print" href="<?php echo APP_PATH;?>?m=content&c=index&a=send_contents_email&catid=<?php echo $catid;?>&id=<?php echo $id;?>"><em class="dy01"></a></em><em class="dy02" onclick="javascript:doPrint()"></em>



			</h2>



			<div class="content">



				<?php if($power_content == 1) { ?>

			   	<?php echo $pcontent;?>

				<?php } else { ?>
<?php echo $interpret_content;?>
				<?php } ?>	
				<div id="pages" class="text-c"><?php echo $pages;?></div>



			</div>



			<div class="content hide"><?php echo $content;?></div>







		</div>

<div style="clear:both;"></div>

    <div class="zxjrwz">最新加入文章</div>

    <div class="zxjrwz_gd"></div>   

    <div class="zxjrwz_text">

                 <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=3617a2d1c83dd3fc68a2ef7124ec4149&action=lists&catid=%24catid&num=10&order=inputtime+DESC&return=data\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>$catid,'order'=>'inputtime DESC','limit'=>'10',));}?>

				 <?php $n=1; if(is_array($data)) foreach($data AS $key => $r) { ?>

					<h2 class="contentTit" id="<?php echo $key;?>"><?php echo $key;?></h2>

					<div class="more">

						<?php $n=1;if(is_array($r)) foreach($r AS $v) { ?>

						<h2 class="moreTit">

							<a href="<?php echo $v['url'];?>"><?php echo $v['title'];?></a>

						</h2>

						<ul class="newsList">

							<li><em>作者:</em><span><?php echo $v['username'];?></span><strong><?php echo date("Y-m-d",$v[inputtime]);?></strong></li>

							<li><?php echo $v['description'];?></li>

						</ul>

						<?php $n++;}unset($n); ?>

				</div>

			    <?php $n++;}unset($n); ?>

			   					    <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>



				 

                					 

            </div>



	</div>



<!--endprint-->



	<div class="essay_right">



		<h2 class="sort"><?php echo L('classify');?></h2>



		<div class="menu">


            <input type="hidden" value="<?php echo $CATEGORYS[$CATEGORYS[$catid]['parentid']]['parentid'];?>" id="parintid"> 
			<iframe name="center_frame" id="center_frame"



				src="?m=content&c=index&a=public_categorys&type=add&menuid=822&pc_hash=eAyt1x"



				frameborder="false" scrolling="auto" style="border: none"



				width="100%" height="400" allowtransparency="true"></iframe>



		</div>
		<script>
		  $(function(){
			  	 var  parintid = $("#parintid").val();
				 alert(parintid);
			   	 $("#center_frame").contents().find("#"+parintid).show().siblings().hide();  
		  })
		</script>

 <div class="essay_right">

        <h2 class="sort">最受欢迎的文章</h2>

	         <div class="menu news_update">

	         <ul>

<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=cf78d56f3a49d3f3ae739549e0b458eb&action=hits&num=10&order=views+DESC&return=datal\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'hits')) {$datal = $content_tag->hits(array('order'=>'views DESC','limit'=>'10',));}?>

	           <?php $n=1; if(is_array($datal)) foreach($datal AS $key => $r) { ?>

	             	 <li><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a></li>

	             	 <li><?php echo L('updatetime');?>: <?php echo date("Y-m-d", $r[updatetime]);?></li>

	             	 <li class="mr5 mb5"><?php echo L('publish_user');?>: <?php echo $r['username'];?></li>

	               <?php $n++;}unset($n); ?>

	          <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>

	          </ul>

	       	 </div>



		



	</div>



	<div class="clear"></div>



</div>



<div class="bk10"></div>



<?php if($repebrow == 3) { ?>



	<script>



	        	  $(function(){



	        		  window.top.art.dialog({id:'login'}).close(); 



	        		  window.top.art.dialog({title:'login',id:'login',iframe:'<?php echo APP_PATH;?>index.php?m=member&c=index& a=login&siteid=<?php echo $siteid;?>&dialog=login',width:'480',height:'300'}); 



	        		  $(".aui_close").remove();



	        	  })  



        	</script>

	<?php } elseif ($repebrow == 2) { ?>



	<script>



		     	$(function(){



		     			var html = "<div class=\"reg\"><?php echo L('need_buy_read');?><br /><div class=\"submit\"><input type=\"button\" name=\"register\" value=\"<?php echo L('buy_read');?>\" onclick=\"redirect('<?php echo APP_PATH;?>index.php?m=member&c=index&a=publicreapackage&siteid=<?php echo $siteid;?>')\"></div></div>";  



		     			window.top.art.dialog({id:'buyread'}).close(); 



		     			var dialog = art.dialog({title:'Buy and read', id:'buyread', content:html,width:'280',height:'100',  lock: true, dblclick_hide:false}); 



		     			dialog.shake && dialog.shake();



		       		  	$(".aui_close").remove();



		       	 })  



		     </script>



	<?php } elseif (empty($_username)) { ?>

                	<script>



	        	    setTimeout(showlogin , 120000);



	        	     function showlogin(){

	        		  window.top.art.dialog({id:'login'}).close(); 



	        		  window.top.art.dialog({title:'login',id:'login',iframe:'<?php echo APP_PATH;?>index.php?m=member&c=index& a=login&siteid=<?php echo $siteid;?>&dialog=login',width:'480',height:'300'}); }

        	</script>





	<?php } ?>

<!--footer-->







<?php include template("content","footer"); ?>



